<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*,com.javabean.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户信息修改</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css" type="text/css" media="all" />


<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}
function save(){
	if(document.fom.userDepartment.value == null || document.fom.userDepartment.value == ""){
		alert("所属部门必须填写");
		document.fom.userDepartment.focus();
		return;
	}
	else if(document.fom.userOffice.value == null || document.fom.userOffice.value == ""){
		alert("截止日期必须填写");
		document.fom.userOffice.focus();
		return;
	}
	else if(confirm("确认保存？")){
		document.fom.submit();			
	}
}
</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
 
<div class="MainDiv">
<form action="UserDeal?flag=changeMyself" method="post" id="fom" name="fom">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >用户信息修改</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		
				<tr>
			<td width="100%">
				<fieldset style="height:100%;">
				<legend>用户信息</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					 
					  <tr>
					    <td nowrap align="right" width="15%">姓名:</td>
					    <td width="35%"><input name="userName" type="text" class="text" readonly="readonly"style="width:154px" value="<%=((User)request.getSession(true).getAttribute("user")).getUserName()  %>" /></td>
					    <td width="16%" align="right" nowrap="nowrap">工号:</td>
					    <td width="34%"><input class="text" type="text" readonly="readonly" name="userNumber" style="width:154px" value="<%=((User)request.getSession(true).getAttribute("user")).getUserNumber() %>"></td>
					  </tr>
					    
					  <tr>
					    <td nowrap="nowrap" align="right">所属部门:</td>
					    <td><input class="text" name="userDepartment" style="width:154px" value="<%=((User)request.getSession(true).getAttribute("user")).getUserDepartment()  %>"/></td>
					    <td align="right">办公地点:</td>
					    <td><input class="text" name="userOffice" style="width:154px" value="<%=((User)request.getSession(true).getAttribute("user")).getUserOffice() %>"/>
					    <input type="hidden" name="userGrade" value="<%=((User)request.getSession(true).getAttribute("user")).getUserGrade() %>"/>
					    <input type="hidden" name="userPassword" value="<%=((User)request.getSession(true).getAttribute("user")).getUserPassword() %>"/>
					    <input type="hidden" name="userId" value="<%=((User)request.getSession(true).getAttribute("user")).getUserId() %>"/>
					    </td>
					    
					  </tr>
					 
					  <tr>
					    <td align="right">备注:</td>
					    <td colspan="3"><textarea name="userDescription" cols="100" rows="8" ><%=((User)request.getSession(true).getAttribute("user")).getUserDescription()  %></textarea></td>
					  </tr>
					  </table>
			  <br />
				</fieldset>			</td>
		</tr>		
		</table>
	 </td>
  </tr>
		<tr>
			<td colspan="2" align="center" height="50px">
			<input type="button" name="Submit" value="保存" class="button" onclick="save()"/>　
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></td>
		</tr>
		</table>
</form>
	 </td>
  </tr>
  
  


</div>

</body>
</html>
